package com.linsir.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linsir.mapper.ModelMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Auther: yuxiaolin
 * @Date: 2021/5/30 17:01
 * @Description:
 */
@Service
public class ModelServiceImpl extends ServiceImpl<ModelMapper,Object> implements ModelService, IService<Object> {

    @Resource
    private ModelMapper modelMapper;

    @Override
    public void createTable(String tableName) {
        modelMapper.createTable(tableName);
    }

    @Override
    public  List<Map<String,Object>> selectModel(String tableName) {
        return modelMapper.SelectModel(tableName);
    }
}
